package jsp;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;

/**
 * @author 石小俊
 * @date 2023年10月25日 11:17
 */
@WebServlet("/jl")
public class JSTLServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setAttribute("age",18);
        request.setAttribute("now",new Date());
        request.getRequestDispatcher("/jsp/jstl.jsp").forward(request,response);
    }
}
